import { mapActions, mapGetters } from 'vuex'

export const bookMixin = {
  computed: {
    ...mapGetters(['fileName', 'menuVisible'])
  },
  methods: {
    ...mapActions(
      ['setMenuVisible', 'setFileName']
    )
  }
}
